#ifndef RETURNEDBOOK_H
#define RETURNEDBOOK_H
#include "borrowedbook.h"
#include <QDate>
//已归还的图书类

class ReturnedBook:public BorrowedBook
{
public:
    ReturnedBook();
    ReturnedBook(const QString &returnTime);



    ReturnedBook(const QString &name, const QString &publisher, const QString &author, const QString &ISBN, const QString &category, const QString &collectionLocation, int currentCollection, int allCollection, const QDate &loanTime, QCheckBox *checkBox, const QDate &returnTime);
    QDate getReturnTime() const;
    void setReturnTime(const QDate &newReturnTime);
    ~ReturnedBook();
private:
    //添加归还时间属性
    QDate returnTime;
};

#endif // RETURNEDBOOK_H
